<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/calendar.js"></script>
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" language="javascript">

</script>
</head>
<body>
<form name="addInvoiceForm" action="" method="post">
<input id="contractId" name="contractId" type="hidden" value="${contractId}"/>
	<table class="table_frame">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab" colspan="2">
							开票列表
						</td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top">
				<table class="table_title2">
					<tr>
						<td>
							<table class="table_add">
								<tr>
									<td class="title_top"></td>
									<td class="title_top">发票号码</td>
									<td class="title_top">开票日期</td>
									<td class="title_top">领票人</td>									
									<td class="title_top">开票金额</td>
									<td class="title_top">备注信息</td>
								</tr>	
								<c:forEach var="invoice" items="${invoiceList}">
									<tr onmouseover="onmousemoveChange(this,'img${invoice.id}')" onmouseout="onmouseoutChange(this,'img${invoice.id}')">
										<td height="16" width="8" align="right"><img id="img${invoice.id}" src="./images/table_sign2.bmp"></td>
										<td><a href="./contract.do?action=reverseInvoiceDetail&invoiceId=${invoice.id}">${invoice.invoiceCode}</a></td>
										<td><fmt:formatDate value="${invoice.invoiceDate}" pattern="yyyy-MM-dd"/></td>
										<td>${invoice.invoicePerson}</td>
										<td>${invoice.invoiceCost}</td>										
										<td>${invoice.invoiceDesc}</td>
										<td></td>
									</tr>
								</c:forEach>														
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</form>
</body>
</html>